package com.yuba.front.domain.vo;

import com.yuba.common.translation.annotation.Translation;
import com.yuba.common.translation.constant.TransConstant;
import com.yuba.front.domain.Posts;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 帖子列表VO
 * @author modakai
 */
@Data
@AutoMapper(target = Posts.class)
public class PostsListVo implements Serializable {

    private Long postId;

    private Long userId;

    private String username;

    private String nickname;

    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long avatar;

    private String title;

    private String content;

    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long cover;

    /**
     * 点赞
     */
    private Long likeCount;

    /**
     * 浏览量
     */
    private Long viewCount;

    /**
     * 评论量
     */
    private Long commentCount;

    /**
     * 收藏量
     */
    private Long collectCount;

    /**
     * 是否精选
     */
    private String choiceFlag;

    /**
     * 是否发布
     */
    private String releaseFlag;

    /**
     * 是否隐藏
     */
    private String showFlag;

    /**
     * 编辑时间
     */
    private Date editTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 标签列表
     */
    private List<String> tagList;

    /**
     * 推荐分数
     */
    private Integer recommendScore;

    /**
     * 推荐时间戳
     */
    private Long recommendTime;

    private Boolean collectFlag;

    private Boolean likeFlag;

}
